rombios: fix trying to boot from next device
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 27 May 2009 10:19:38 +0000 (11:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 27 May 2009 10:19:38 +0000 (11:19 +0100)
If boot="ndc", rombios cannot try to boot next device.
Because rombios jump to the boot vector without pushing return
address, gPXE code and so on cannot return if it fail to boot.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
tools/firmware/rombios/rombios.c

index 0aea421e17a16f9e9a527e0c6ff756d9f9519f58..94f9a9b521e98756a0332746745008c4d35c323a 100644 (file)
@@ -8362,8 +8362,8 @@ ASM_END
   /* Jump to the boot vector */
 ASM_START
     mov  bp, sp
-//    push cs
-//    push #int18_handler
+    push cs
+    push #int18_handler
     ;; Build an iret stack frame that will take us to the boot vector.
     ;; iret pops ip, then cs, then flags, so push them in the opposite order.
     pushf